<?php

namespace App\Datalog\Events;

use App\Models\Users;

class ToApkEventLog extends EventLog
{
    // 日志名称
    protected $name = 'toapk';

    protected $eventId = 1005;

    public function addLog(Users $user)
    {
        $params = [
            'user_id'         => $user->user_id,
            'create_time'     => $user->toapk_time,
            'game_id'         => $user->game_id,
            'channel'         => $user->channel,
            'game_channel_id' => $user->game_channel_id,
            'channel_openid'  => $user->channel_openid,
        ];
        $this->addEventLog($params['user_id'], $params['create_time'], $params);
    }
}
